package com.hmsproject.db.inmemorydb;

import java.util.HashMap;
import java.util.Map;

import com.hmsproject.datastructures.event.Event;

public class EventMap {
	
	private static EventMap eventMap = new EventMap();
	
	private Map<String,Event> eventMapper;
	
	private EventMap(){
		eventMapper = new HashMap<String,Event>();
	}
	
	public static EventMap getInstance(){
		return eventMap;
	}
	
	public Event getEvent(String eventId){
		return eventMapper.get(eventId);
	}
	
	public void addEvent(Event event){
		eventMapper.put(event.getEventId(), event);
	}	

}
